package com.ec.log.api.modules.log.feign.factory;

import com.ec.log.api.modules.log.feign.ILogFeign;
import com.ec.log.api.modules.log.feign.fallback.LogFeignFallback;
import org.springframework.cloud.openfeign.FallbackFactory;

/**
 * @description:
 * @author: Eric Lee
 * @time: 2021/8/21 12:30
 */
public class LogFeignFallbackFactory implements FallbackFactory<ILogFeign> {
    @Override
    public LogFeignFallback create(Throwable throwable) {
        LogFeignFallback sysUserClientFallback = new LogFeignFallback();
        sysUserClientFallback.setThrowable(throwable);
        return sysUserClientFallback;
    }
}
